package cn.com.bluemoon.daps.api.model;


import cn.com.bluemoon.daps.api.model.factory.RemoteDapDataModelSystemTagMiddleServiceFallbackFactory;
import cn.com.bluemoon.daps.common.constant.ServiceNameConstants.DapsApiModel;
import cn.com.bluemoon.daps.common.domain.ResultBean;
import cn.com.bluemoon.daps.model.entity.DapDataModelSystemTagMiddle;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;

@FeignClient(value = DapsApiModel.SERVICE, fallbackFactory = RemoteDapDataModelSystemTagMiddleServiceFallbackFactory.class)
@RequestMapping(DapsApiModel.BASE_URI + DapsApiModel.API_MODEL_TAG)
@ApiIgnore
public interface RemoteDapDataModelSystemTagMiddleService {

    @GetMapping("/tagMiddle/{id}")
    ResultBean<List<DapDataModelSystemTagMiddle>> getTagMiddleList(@PathVariable("id")
                                                                   @ApiParam("标签id") String id);
}
